package day10.edu;

// Created: 10/09/2025, ChangJiang Ru
public class Exer3 {
    public static void main(String[] args) {
        try {
            Person p = new Person("Tome", -10);
            System.out.println(p);
        }catch(NoLifeValueException e)
        {
            e.printStackTrace();
            System.out.println(e.getMessage());
        }

        Person p1 = new Person();
        p1.setName("Jerry");
//        p1.setLifeValue(-10);
        p1.setLifeValue(10);

        System.out.println(p1.toString());

    }
}
